
import {
  handlerErrorCode,
  handlerRequstConfig,
  handlerSucessResponse
} from './handlerInterceptor'

export const requestInterceptor = (config) => {
  return handlerRequstConfig(config)
}

export const requestInterceptorCatch = (error) => {
  return error
}

export const responseInterceptor = (response) => {
  return handlerSucessResponse(response)
}

export const responseInterceptorCatch = (error) => {
  return handlerErrorCode(error)
}
